package pl.pkolodziej.platform.vo.schedule;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.StringEscapeUtils;

@Entity
@Table(name="schedule")
public class Schedule {
	
	@Id
	@Column(name="id")
	private int idd;

	@Column(name="username")
	private String username = "";

	@Column(name="group_id")
	private String group_id = "";
	
	@Column(name="course_id")
	private int courseId = 0;
	
	@Column(name="title")
	private String title = "";

	@Column(name="myDate")
	private String myDate;
	
	@Column(name="place")
	private String place = "";
	
	@Column(name="info")
	private String info = "";
	
	@Column(name="active")
	private Boolean active = false;
	
	@Column(name="status")
	private String status = "";

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getGroup_id() {
		return group_id;
	}

	public void setGroup_id(String group) {
		this.group_id = group;
	}
	
	public String getTitle() {
		return StringEscapeUtils.unescapeHtml(title);
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getCourseId() {
		return courseId;
	}

	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}

	public String getMyDate() {
		return myDate;
	}

	public void setMyDate(String myDate) {
		this.myDate = myDate;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Boolean getActive() {
		return active;
	}

	public void setActive(Boolean active) {
		this.active = active;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public int getIdd() {
		return idd;
	}

	public void setIdd(int idd) {
		this.idd = idd;
	}
}
